package com.ykdl.member.kid.beans;

import java.io.Serializable;

import android.R.bool;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class SystemMessageBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7644886773133738079L;
	private SystemMessageExtraContextBean last ;
	private int count ;
	private SystemMessageExtraContextBean extra_context ;
	private String group;
	private boolean is_read ;
	private int unread_count ;
	private int verb ;
	public SystemMessageExtraContextBean getExtra_context() {
		return extra_context;
	}
	public String getGroup() {
		return group;
	}
	public boolean isIs_read() {
		return is_read;
	}
	public int getUnread_count() {
		return unread_count;
	}
	public int getVerb() {
		return verb;
	}
	public SystemMessageExtraContextBean getLast() {
		return last;
	}
	public int getCount() {
		return count;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, SystemMessageBean.class);
		}
		return null;
	}

}
